package com.atomos.strategy.initialize
{
	import com.bourre.collection.Stack;
	import com.atomos.particle.Particle;
	import com.bourre.collection.Iterator;

	public class StackInitializer extends Stack implements InitializeStrategy
	{
		public function StackInitializer()
		{
			super( InitializeStrategy );
		}
		
		public function initialize(particle:Particle):void
		{
			var i : Iterator = iterator();
			
			while( i.hasNext() )
			{
				( i.next() as InitializeStrategy ).initialize( particle );
			}
		}
		
	}
}